package com.batsoft.trade.model.common;

import com.batsoft.trade.model.transaction.Source;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * 2019/5/14 00:20
 */
@Getter
@Setter
public abstract class BaseTrade {

    //用户id
    private Long uid;

    //交易对 如BTC_USDT
    private String coinCode;

    //操作数量
    private BigDecimal count;

    //委托价格
    private BigDecimal price;

    //是否为市价下单
    private boolean isMarket;

    //来源
    private Source source;

    // 订单号
    private String orderNum;

}
